# Created with PyCharm.
# Project_Name SoftwareTesting2022
# PATH Needing
# Files_Name 多网页框架.py
# Coding UTF-8
# @Version Python 3.8

# @author GeekChunky
# @Email caiyoupeng00@outlook.com

# @Date 2021/12/03
# @CreatTime 12:07

'''
Documentation comments:

'''

# Now Write Down Your Python Code in Editor...
# Wish You Happy Everyday !
from time import sleep

from selenium import webdriver

driver = webdriver.Edge(r'C:\Users\caiyo\AppData\Local\Programs\Python\Python38\BroswerDriver\msedgedriver.exe')
driver.maximize_window()
driver.get('http://www.baidu.com')
driver.execute_script("window.open('');")
driver.switch_to.window(driver.window_handles[1])
driver.get('http://www.bilibili.com')
